package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingPlan;
import com.zzyl.vo.NursingPlanVo;
import lombok.Getter;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

import java.util.List;



@Mapper
public interface NursingPlanMapper {

    // 查询所有护理计划
    List<NursingPlan> getAll();

    // 新增护理计划
    void add(NursingPlan nursingPlan);

    // 分页查询
    Page<NursingPlanVo> getPage(String name, Integer status);

    // 根据id查询
    NursingPlan getById(Integer id);

    // 更新护理计划
    void update(NursingPlan nursingPlan);

    // 删除护理计划
    void delete(Long id);

}